package com.valveinspectionsys.maintain.activity;

import com.valveinspectionsys.R;
import com.valveinspectionsys.routing.activity.DeviceBandingUpload;
import com.valveinspectionsys.routing.activity.DeviceNavigationUploadActivity;
import com.valveinspectionsys.routing.activity.DeviceUploadMainActivity;
import com.valveinspectionsys.routing.activity.RoutingDataUploadActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * 保养上传主界面
 * @author King
 *
 */
public class MaintainUploadMainActivity extends Activity  implements OnClickListener{
    public Button button1;// 抄表上传
    public Button button2;// 图文上传
    public Button button3;// 绑定上传
    @Override
    protected void onCreate(Bundle savedInstanceState) {
	
	super.onCreate(savedInstanceState);
	setContentView(R.layout.device_upload_main);
	button1 = (Button) findViewById(R.id.device_upload_main_upload);
	button2 = (Button) findViewById(R.id.radio_report_tuwen_upload);
	button3 = (Button) findViewById(R.id.radio_report_banding_upload);
	button1.setText("保养上传");
	button1.setOnClickListener(this);
	button2.setOnClickListener(this);
	button3.setOnClickListener(this);
	
    }

 
    @Override
    public void onClick(View v) {
	Intent  intent=null;
	switch (v.getId()) {
	case R.id.device_upload_main_upload:
	       intent=new Intent(MaintainUploadMainActivity.this, MaintainCopyDataUpload.class);
	       startActivity(intent);
	    break;
         
	case R.id.radio_report_tuwen_upload:
	    intent=new Intent(MaintainUploadMainActivity.this, TuwenUploadActivity.class);
	       startActivity(intent);
	    break;
	case R.id.radio_report_banding_upload:
	    intent=new Intent(MaintainUploadMainActivity.this,BandingUploadActivity.class);
	       startActivity(intent);
	    break;
	default:
	    break;
	}
	
    }
        
    
    @Override
    protected void onDestroy() {
	
	super.onDestroy();
    }

   


}
